package com.qingcheng.service.system;

import com.qingcheng.entity.PageResult;
import com.qingcheng.pojo.system.Resource;

import java.util.List;
import java.util.Map;

/**
 * resource业务逻辑层
 */
public interface ResourceService {


    public List<Resource> findAll();


    public PageResult<Resource> findPage(int page, int size);


    public List<Resource> findList(Map<String, Object> searchMap);


    public PageResult<Resource> findPage(Map<String, Object> searchMap, int page, int size);


    public Resource findById(Integer id);

    public void add(Resource resource);


    public void update(Resource resource);


    public void delete(Integer id);

    /**
     * 根据用户名查询资源key列表
     * @param username
     * @return
     */
    public List<String> keyList(String username);

}
